package com.spa.application.query.shop;

import com.spa.application.query.PageQuery;
import com.spa.infrastructure.annotation.DateTimeStr;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class OrderListQuery extends PageQuery {

    private Integer status;

    @NotBlank(message = "开始日期不能为空！")
    @DateTimeStr(format = "yyyy-MM-dd", message = "开始日期格式错误，正确格式为：yyyy-MM-dd")
    private String beginDate;

    @NotBlank(message = "结束日期不能为空！")
    @DateTimeStr(format = "yyyy-MM-dd", message = "结束日期格式错误，正确格式为：yyyy-MM-dd")
    private String endDate;

}
